exports.install = function (Vue, options) {
    Vue.prototype.downloadExcel = function (data) {
        if (!data) {
            return false
        }
        let url = window.URL.createObjectURL(new Blob([data], {
            type: 'application/vnd.ms-excel'
        }))
        let link = document.createElement('a')
        link.style.display = 'none'
        link.href = url
        link.setAttribute('download','歌曲信息表.xlsx')
        document.body.appendChild(link)
        link.click()
        //释放临时对象
        window.URL.revokeObjectURL(url)
        this.$message.success("导出成功")
    }
}
